{extend name='admin@main'}

{block name="button"}


{/block}

{block name="content"}
<table class="layui-table" lay-skin="line">
    <caption class="margin-bottom-10 text-left">{include file='index/index_search'}</caption>
    {notempty name='list'}
    <thead>
    <tr>
        <th class='list-table-check-td think-checkbox'>
            <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
        </th>
        <th class='text-left nowrap' style="">ID</th>
        <th class='text-left nowrap' style="">用户信息</th>
        <!--<th class='text-left nowrap' style="">储值码</th>-->
        <th class='text-left nowrap' style="">订单号</th>
        <th class='text-left nowrap' style="">方式</th>
        <th class='text-left nowrap' style="">充值/使用金额</th>
        <th class='text-left nowrap' style="">充值/使用时间</th>
        <th class='text-left nowrap'></th>
    </tr>
    </thead>
    {/notempty}
    <tbody>
    {foreach $list as $key=>$vo}
    <tr data-dbclick>
        <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'>
        </td>
        <td class='text-left nowrap'>
            {$vo.id|default=''}
        </td>
        <td class="text-left nowrap relative">
            {notempty name='vo.member.headimg'}
            <img data-tips-image style="width:80px;height:80px" src="{$vo.member.headimg|default=''}" class="margin-right-5 text-top">
            {/notempty}
            <div class="inline-block">
                会员昵称：{$vo.member.nickname|default='--'}<br>
                open_id：{$vo.member.openid|default='--'}<br>
                创建时间：{$vo.member.create_at|default='--'}<br>
            </div>
        </td>
        <td class='text-left nowrap'>
            {$vo.order_sn|default=''}
        </td>
        <td class='text-left nowrap'>
            {$statusTitle[$vo['type']]}
        </td>
        <td class='text-left nowrap'>
            {$vo.total_price}
        </td>
        <td class='text-left nowrap'>
            {$vo.create_time|date='Y-m-d'}
        </td>
        <td class='text-left nowrap'>
            {if auth("coupons/record/del")}
            <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该充值记录吗？" data-action="{:url('del')}"
               data-value="id#{$vo.id}" data-csrf="{:systoken('coupons/card_record/del')}">删 除</a>
            {/if}
        </td>
    </tr>
    {/foreach}
    </tbody>
</table>

{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

{/block}


{block name='script'}
<script>

</script>
{/block}